<?php

class aboutus extends Controller {
	
	public function index() {
		$this->session();
		if($_SESSION['admin'] === NULL){
			new View('template', 
			array('title' =>  'About Us- FEELS',
				'heading' => 'About Us',
				'globalnav' => new BufferedView('org/globalnav'),
				'usernav' => '<span style="color:#fff; align:center"><h4><center>USER LOGIN</center></h4></span>'.new BufferedView('siteadmin/login',
							array(
								'action' => "/login/submit",
								'hiddenInputs' => array()
							)),
				'content' => new BufferedView('public/aboutus')
			) );
		}
		else if ($_SESSION['admin'] === '1'){
			new View('template', 
			array('title' =>  'About Us- FEELS',
				'heading' => 'About Us',
				'globalnav' => new BufferedView('org/globalnav'),
				'usernav' => '<font color=white><h3><center>MENU</center></h3></font>'.new BufferedView('siteadmin/nav' ),
				'content' => new BufferedView('public/aboutus')
			) );
		}
		else{
			new View('template', 
			array('title' =>  'About Us- FEELS',
				'heading' => 'About Us',
				'globalnav' => new BufferedView('org/globalnav'),
				'usernav' => '<font color=white><h3><center>MENU</center></h3></font>'.new BufferedView('members/usernav', array( 'highlight' => 'myorgs' )),
				'content' => new BufferedView('public/aboutus')
			) );
		}
		
	}
	
}